export const state = {
	//用户数据
	userInfo: {
		userId: ''
	},
	pubInfoUserInfo: {},
	unreadCountObj: {
		allCount: 0
	}
};
export const mutations = {
	setUnreadCount(state, obj) {
		state.unreadCountObj = obj
	},
	clearUnreadCount(state, obj) {
		state.unreadCountObj = {
			allCount: 0,
			all: 0,
			plate: 0,
			fenjie: 0,
			member: 0,
		}
	},
	//储存用户信息
	setUserInfo(state, data) {
		if (data) {
			state.userInfo = data
		}
	},
	setPubInfoUserInfo(state, data) {
		if (data) {
			state.pubInfoUserInfo = data
		}
	},
	// 新增清除数据的mutation
	clearAuthData(state) {
		state.userInfo = {
			userId: ''
		}
		state.pubInfoUserInfo = null
	},
};
export const actions = {

};